home *** CD-ROM | disk | FTP | other *** search
/ Robotics & Artificial Int…3 (Professional Edition) / Robotics & Artificial Intelligence Tools 2003 (Professional Edition).iso / neural network tool and application / nsinstall.exe / data1.cab / Demos_Files / Code_Generation / Testing within NeuroSolutions.nsm < prev    next >
Encoding:
Text File  |  2002-03-08  |  2.6 KB  |  69 lines

  1. subtitleTextBox. setText ("")
  2. mainTextBox. setText ("")
  3.  
  4. WeightFilePath = macro. pathFromMacro ( "xorWeights.nsw" )
  5. control. loadWeights ( WeightFilePath , FALSE )
  6.  
  7. activeBreadboard. deleteObject ( "viewSourceCode" )
  8.  
  9. controlBackprop. freeALL (  )
  10.  
  11. activeBreadboard. stampOnAndMove ( "MatrixViewer" , "inputFile" )
  12. matrixViewer. setName ("activeInputProbe")
  13. activeInputProbe. setAutosizing ( TRUE )
  14. activeInputProbe. setEnableLabels ( TRUE )
  15. activeInputProbe. setLabelSize ( 30 )
  16. activeInputProbe. setFileForColumnHeadings ( "inputFile" )
  17. activeInputProbe. loadColumnHeadings (  )
  18. activeInputProbe. setAccessRows (FALSE)
  19. activeInputProbe. setActiveNeuron (0)
  20. activeInputProbe. setLabel ( "Input" )
  21.  
  22. activeBreadboard. stampOnAndMove ( "MatrixViewer" , "outputAxon" )
  23. matrixViewer. setName ("activeOutputProbe")
  24. activeOutputProbe. setActiveAccessPoint ( "Activity" )
  25. activeOutputProbe. setAutosizing ( TRUE )
  26. activeOutputProbe. setEnableLabels ( TRUE )
  27. activeOutputProbe. setLabelSize ( 30 )
  28. activeOutputProbe. setFileForColumnHeadings ( "desiredFile" )
  29. activeOutputProbe. loadColumnHeadings (  )
  30. activeOutputProbe. setAccessRows (FALSE)
  31. activeOutputProbe. setActiveNeuron (0)
  32. activeOutputProbe. setLabel ( "Output" )
  33.  
  34. activeBreadboard. stampOnAndMove ( "MatrixViewer" , "hidden1Synapse" )
  35. matrixViewer. setName ( "activeConnectionWeightsProbe" )
  36. activeConnectionWeightsProbe. setActiveAccessPoint ( "Weights" )
  37. activeConnectionWeightsProbe. setLabelSize ( 20 )
  38. activeConnectionWeightsProbe. setFontHeight ( 15 )
  39.  
  40. activeBreadboard. stampOnAndMove ( "MatrixViewer" , "outputSynapse" )
  41. matrixViewer. setName ( "activeConnectionWeightsProbe1" )
  42. activeConnectionWeightsProbe1. setActiveAccessPoint ( "Weights" )
  43. activeConnectionWeightsProbe1. setLabelSize ( 20 )
  44. activeConnectionWeightsProbe1. setFontHeight ( 15 )
  45.  
  46. activeInputProbe. tileWindow (1,4,4,4)
  47. activeOutputProbe. tileWindow (2,4,4,4)
  48. activeConnectionWeightsProbe. tileWindow (3,3,4,5)
  49. activeConnectionWeightsProbe1. tileWindow (3,3,5,5)
  50.  
  51. activeBreadboard. lockWindowUpdate()
  52.  
  53. runCompiledProgram. setName ( "stepExemplar" )
  54. stepExemplar. setText ( "Step" )
  55. ControlMacroPath = macro. pathFromNS ( "Macros\stepExemplar.nsm" )
  56. stepExemplar. setMacroPath ( ControlMacroPath )
  57.  
  58. activeBreadboard. unlockWindowUpdate()
  59.  
  60. activeBreadboard. select ( NULL , FALSE )
  61.  
  62. control. setLearning ( FALSE )
  63. control. stepEpoch (  )
  64.  
  65. NextMacroPath = macro. pathFromMacro ( "Summary.nsm" )
  66. nextButton. setMacroPath ( NextMacroPath )
  67. SubtitleIndex = subtitleTextBox. setTextFromFile (TextBoxPath, SubtitleIndex)
  68. MainIndex = mainTextBox. setTextFromFile (TextBoxPath, MainIndex)
  69.